package com.hs.jhzd.repository;

import com.hs.jhzd.entity.Duty;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface DutyRepository extends JpaRepository<Duty, String> {

  List<Duty> findByJsbhAndJsh(String jsbh, String jsh);
  List<Duty> findByJsbhAndJshAndDjsjBetween(String jsbh, String jsh, Date startTime, Date endTime);
}
